﻿namespace SilverSea.Databases
{
    using System;
    using System.Data;

    public interface IConnection
    {
        event DatabaseConnectionErrorEventHandler DatabaseConnectionErrorEvent;

        void Close();
        bool ExecuteCommand(string commandString);
        bool ExecuteCommand(string commandString, string parameters, byte[] values);
        bool ExecuteCommand(string commandString, string parameter1, byte[] value1, string parameter2, byte[] value2);
        string GetConnectionString();
        DataSet GetDataSet(string commandString);
        DataTable GetTable(string commandString);
        bool Open();

        int Authentication { get; set; }

        string DatabaseName { get; set; }

        bool EnableMARS { get; set; }

        string Password { get; set; }

        string ServerName { get; set; }

        ConnectionState State { get; }

        string UserName { get; set; }
    }
}

